/* 问题详情页面样式 */
.text-black {
    color: black !important;
}

.tab-content {
    padding: 0 8px;
    margin-bottom: 10px;
    border-right: 1px solid #d0d7de;
    border-bottom: 1px solid #d0d7de;
    border-left: 1px solid #d0d7de;
    border-radius: 0 0 3px 3px / 0 0 3px 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.note-header {
    border-bottom: 1px solid #ccc;
    font-weight: normal;
}

.details {
    margin-bottom: 1.5em;
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}

.divthumbnails {
    margin-left: 2em;
}

.divthumbnail {
    background: #fff;
    border: 2px solid #ddd;
    display: inline-block;
    margin-right: 2px;
}

/* 侧边栏优化样式 */
.sidebar-header .ibox-title {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.sidebar-title {
    font-weight: 600;
    color: #495057;
}

.sidebar-action-btn {
    margin-bottom: 5px;
    text-align: left;
    padding: 8px 12px;
    border-radius: 3px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.sidebar-action-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
	color: #444
}

.sidebar-info-list {
    margin: 0;
}

.sidebar-info-item {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e9ecef;
}

.sidebar-info-item:last-child {
    border-bottom: none;
}

.sidebar-info-value {
    color: #6c757d;
    font-size: 13px;
}

.status-label, .priority-label {
    font-size: 12px;
    padding: 3px 8px;
}

.progress-sm {
    height: 15px;
    margin: 5px 0;
}

.progress-sm .progress-bar {
    font-size: 11px;
    line-height: 15px;
}

.sidebar-attachment-count {
    color: #6c757d;
    font-weight: 500;
}

.sidebar-attachment-list {
    margin-top: 10px;
}

.sidebar-attachment-item {
    margin-bottom: 5px;
}

.sidebar-attachment-btn {
    padding: 6px 10px;
    border-radius: 3px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.sidebar-attachment-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* 侧边栏模块样式 */
.sidebar-module {
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 通用样式类，用于替换内联样式 */
.form-header {
    margin-bottom: 5px;
}

.info-value-cell {
    padding-top: 7px;
}

.attachment-image {
    max-width: 100px;
    max-height: 100px;
}

.journal-entry {
    padding-bottom: 10px;
}

.journal-detail-item {
    margin-bottom: 4px;
}

.description-content {
    margin: 0px 15px 7px;
}

/* 进度条样式 */
.progress-custom-width {
    width: 60%;
}

/* 表格内容样式 */
.table-content {
    margin: 0px 15px 7px;
}

/* 附件按钮样式 */
.attachment-btn {
    width: 100%; 
    text-align: left; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
}

/* 侧边栏进度条 */
.progress-sm {
    height: 15px;
    margin: 5px 0;
}

.progress-sm .progress-bar {
    font-size: 11px;
    line-height: 15px;
}

/* 新增样式类 */
.btn-group-full-width {
    width: 100%;
}

.journal-notes {
    padding-left: 12px;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
}

/* 关注按钮样式 */
#watchButton {
    position: relative;
    transition: all 0.3s ease;
}

#watchButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#watchButton.btn-primary {
    background-color: #28a745;
    border-color: #28a745;
}

#watchButton.btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

#watchIcon {
    transition: color 0.3s ease;
}

/* 关注者列表样式 */
.sidebar-watchers-list {
    max-height: 150px;
    overflow-y: auto;
}

.sidebar-watcher-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #e9ecef;
    font-size: 13px;
}

.sidebar-watcher-item:last-child {
    border-bottom: none;
}

.sidebar-watcher-item i {
    margin-right: 8px;
    font-size: 12px;
}

.watcher-user-name {
    color: #495057;
    font-weight: 500;
}

#watcher-count {
    color: #6c757d;
    font-size: 12px;
}

#watcher-count-num {
    color: #28a745;
    font-weight: 600;
}

/* 关注按钮样式 */
#watchButton {
    position: relative;
    transition: all 0.3s ease;
}

#watchButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#watchButton.btn-primary {
    background-color: #28a745;
    border-color: #28a745;
}

#watchButton.btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

#watchIcon {
    transition: color 0.3s ease;
}

/* 关注者列表样式 */
.sidebar-watchers-list {
    max-height: 150px;
    overflow-y: auto;
}

.sidebar-watcher-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #e9ecef;
    font-size: 13px;
}

.sidebar-watcher-item:last-child {
    border-bottom: none;
}

.sidebar-watcher-item i {
    margin-right: 8px;
    font-size: 12px;
}

.watcher-user-name {
    color: #495057;
    font-weight: 500;
}

#watcher-count {
    color: #6c757d;
    font-size: 12px;
}

#watcher-count-num {
    color: #28a745;
    font-weight: 600;
}

/* 关注按钮样式 */
#watchButton {
    position: relative;
    transition: all 0.3s ease;
}

#watchButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#watchButton.btn-primary {
    background-color: #28a745;
    border-color: #28a745;
	color: #fff;
}

#watchButton.btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
	color: #fff;
}

#watchIcon {
    transition: color 0.3s ease;
}

/* 关注者列表样式 */
.sidebar-watchers-list {
    max-height: 150px;
    overflow-y: auto;
}

.sidebar-watcher-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed #e9ecef;
    font-size: 13px;
}

.sidebar-watcher-item:last-child {
    border-bottom: none;
}

.sidebar-watcher-item i {
    margin-right: 8px;
    font-size: 12px;
}

.watcher-user-name {
    color: #495057;
    font-weight: 500;
}

#watcher-count {
    color: #6c757d;
    font-size: 12px;
}

#watcher-count-num {
    color: #28a745;
    font-weight: 600;
}

/* Journal标题样式优化 */
.journal-header-with-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.journal-header-content {
    flex: 1;
}

.journal-contextual {
    margin-left: 10px;
}

.journal-contextual .journal-link {
    color: #337ab7;
    font-weight: 500;
    font-size: 0.9em;
    text-decoration: none;
}

.journal-contextual .journal-link:hover {
    text-decoration: underline;
}

.contextual {float:right; white-space: nowrap; line-height:1.4em;margin:5px 0px; padding-left: 10px; font-size:1em;}
.contextual input, .contextual select {font-size:0.9em;}
.contextual {
    margin-top: 0;
}

/* 关联问题列表优化样式 */
.relation-list-header {
    margin: 10px 0;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}

.relation-list-empty {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* 表格悬停效果增强 */
.list.issues tbody tr {
    transition: all 0.2s ease;
}

.list.issues tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 图标按钮悬停效果 */
.icon-only:hover {
    background-color: #f0f0f0;
    border-radius: 3px;
}

/* 截止日期警告 */
.overdue .due_date {
    color: #ff4d4f;
    font-weight: 600;
}

/* 延期警告 */
.behind-schedule {
    border-right: 2px solid #ff7875;
}